using UnityEngine;
using System.Collections;

public class Trigger : AbstractElement {
	
	public delegate void TriggerEvent(Trigger trigger);
	
	public event TriggerEvent EventTriggered;
	
	protected void Awake(){
		IsTrigger = true;	
	}
	
	public override void OnContactAdded (){
		if(EventTriggered!=null) EventTriggered(this);
	}
}

